import {TYPES} from '../actions/global'

const initState = {
    userName: 'jiajiazi'
}

export default {
    global: (state = initState, action) => {

        // eslint-disable-next-line default-case
        switch (action.type) {
            case TYPES.UPDATE_USER_NAME:
                return Object.assign({}, state, {userName: action.payload})
        }
        return state
    }
}



